/* 个人中心页面样式 - 卡通风格 */

.profile-layout {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.profile-sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--primary-color) 80%, #fffbe6 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.10), 0 2px 8px rgba(0,0,0,0.04);
    padding: 32px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
}

.user-card {
    text-align: center;
    margin-bottom: 32px;
}

.user-avatar-large {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: #fffbe6;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.10);
    overflow: hidden;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-large img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff8dc;
    border: 2px solid #ffe5b4;
}

.avatar-edit {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
}
.avatar-edit:hover {
    background: var(--primary-dark);
}

.user-name {
    font-size: 22px;
    font-weight: bold;
    color: #d4a200;
    margin-bottom: 4px;
}
.user-phone {
    color: #bfa14a;
    font-size: 14px;
    margin-bottom: 12px;
}
.user-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 10px;
}
.stat-item {
    background: #fffbe6;
    border-radius: 16px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
}
.stat-number {
    font-size: 18px;
    color: #d4a200;
    font-weight: bold;
}
.stat-label {
    font-size: 12px;
    color: #bfa14a;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}
.profile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 16px;
    color: #bfa14a;
    font-size: 16px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    font-weight: 500;
}
.profile-nav .nav-item.active, .profile-nav .nav-item:hover {
    background: #fff8dc;
    color: #d4a200;
}
.profile-nav .nav-item i {
    font-size: 18px;
}

.profile-content {
    flex: 1;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    padding: 40px 32px;
    min-width: 0;
}

.tab-header h2 {
    font-size: 28px;
    color: #d4a200;
    margin-bottom: 8px;
}
.tab-header p {
    color: #bfa14a;
    margin-bottom: 24px;
}

.form-section {
    margin-bottom: 32px;
}
.form-section h3 {
    color: #d4a200;
    font-size: 20px;
    margin-bottom: 16px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.pet-card {
    background: linear-gradient(135deg, #fffbe6 80%, var(--primary-color) 100%);
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.10);
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pet-card:hover {
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.18);
    transform: translateY(-4px) scale(1.03);
}
.pet-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.10);
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pet-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #fffbe6;
}
.pet-status {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffe066;
    border: 2px solid #fff;
}
.pet-info h3 {
    font-size: 18px;
    color: #d4a200;
    margin-bottom: 4px;
}
.pet-breed, .pet-age {
    color: #bfa14a;
    font-size: 14px;
    margin-bottom: 2px;
}
.pet-tags {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}
.tag {
    background: #ffe5b4;
    color: #bfa14a;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 12px;
}
.pet-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}
.add-pet-card {
    background: repeating-linear-gradient(135deg, #fffbe6, #ffe5b4 20px);
    border: 2px dashed #ffd700;
    color: #d4a200;
    cursor: pointer;
    justify-content: center;
}
.add-pet-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.add-pet-content i {
    font-size: 32px;
}

.address-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.address-card {
    background: #fffbe6;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.address-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.address-tag.default {
    background: #ffd700;
    color: #fff;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 12px;
}
.address-detail, .address-contact {
    color: #bfa14a;
    font-size: 14px;
    margin-top: 2px;
}
.address-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.security-items, .settings-items {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.security-item, .setting-item {
    background: #fffbe6;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.security-info, .setting-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.security-info i, .setting-info i {
    font-size: 22px;
    color: #ffd700;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ffe5b4;
    border-radius: 24px;
    transition: .4s;
}
.switch input:checked + .slider {
    background-color: #ffd700;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: .4s;
}
.switch input:checked + .slider:before {
    transform: translateX(20px);
}

@media (max-width: 1024px) {
    .profile-layout {
        flex-direction: column;
        gap: 24px;
    }
    .profile-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        min-width: 0;
        padding: 24px 10px;
    }
    .profile-content {
        padding: 24px 10px;
    }
}
@media (max-width: 600px) {
    .profile-layout {
        gap: 10px;
    }
    .profile-sidebar {
        border-radius: 18px;
        padding: 12px 4px;
    }
    .profile-content {
        border-radius: 18px;
        padding: 10px 2px;
    }
    .pets-grid {
        grid-template-columns: 1fr;
    }
} 